<?php

 $meta_title = $_REQUEST['meta_tile'];
 $meta_images = $_REQUEST['meta_image'];
 $meta_link = $_REQUEST['meta_link'];
 $meta_description = $_REQUEST['meta_content'];



$post_datetime = $this->datetime;
$post_content = $_REQUEST['content'];
$ID = $this->postid;
/* // TODO: lay userid tu sestion */
$userid =1;
$username ="le huy truyen 22";
?>
<div id="new_post" ></div>

<div id="" class="listPost">
	<img src="images/ava.jpg" alt="" />
	
	<h1>
		<a href="" title=""><?php echo $username ?> </a> - <?php echo $post_datetime ?>
	</h1>
	
	<p>
		<?php echo $post_content ?>
		
	<?php 
						if($meta_images != "")
						{
							$meta_hinhanh =$meta_images;
						}
						else
						{
							//TODO: thay link hinh khi ko co hinh
							$meta_hinhanh ="";
						}
						
						?>
						<div class="postsbottom" style="display:block">
									
									<div class="after_att panel_posted_status_edit_img_" style="display:block;">
									<div class="img_link_post">
										<img class="afterImage" src="<?php echo $meta_hinhanh?>" />
									</div>
									<div class="noidung_link_post" id="">
										<div class="mg_top_5">
											<span href=# class="title_post_link">
												<a href="<?php echo $meta_link; ?>" target="_blank">
													<?php echo $meta_title; ?>								
												</a>
											</span>
										</div>
										<div>
											<a href="<?php echo $meta_link; ?>" target="_blank" id="meta_link" class="link_post_link">
												<?php echo $meta_link; ?>			
											</a>
										</div>
										<span id="meta_content" class="content_post_link">
											<a href="<?php echo $meta_link; ?>" target="_blank">
												<?php echo $meta_description; ?>	
											</a>
										</span>
							
									</div>
									</div>	
				
						</div>
						
	</p>

	<div id="" class="onComment">
		<a href="javascript:none" onclick="document.getElementById('comment_<?php echo  $ID; ?>').style.display='inline-block';document.getElementById('<?php echo  $ID ?>').focus();return false;">Bình luận</a>

		<span id="like_1_<?php echo  $ID ?>" >
			<a href="javascript:none"  onclick="return ajlikes('1','<?php echo $ID?>','<?php echo $userid ?>','','0')" title="">Like</a>
		
		<span id='youlike1<?php echo  $ID; ?>'></span>
		<span id='youlikeand1<?php echo  $ID; ?>'></span>
		<span id='thichdieunay1<?php echo  $ID; ?>'></span>
		
		</span>

		<div id="new<?php echo $ID ?>" ></div>

		<div id="comment_<?php echo $ID ?>" >

		<textarea class="binhluanArea" style="width: 437px; height: 17px;  resize: none;" id="<?php echo $ID?>" onfocus="return add_comment_text({id:'<?php echo  $ID ?>', author:'<?php echo  $userid ?>'})"  placeholder="Viết bình luận..."  autocomplete="off" ></textarea>
</div>
	
	
	</div>
	<div id="" class="clear"></div>
</div>